/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
/* stylelint-disable */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}.lint,html{line-height:1}.lint,body{line-height:inherit}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
/* stylelint-enable */

/* Begin site styles below */

html {
  font-family: "Lucida Grande", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
}

/* Layout */
* {
  box-sizing: border-box;
}
#interface {
  height: 100vh;
  padding: 22px;
  display: grid;
  grid-gap: 11px;
  grid-template-rows: auto 1fr auto;
}

#header > h1 {
  margin-bottom: 11px;
}

#footer {
  display: flex;
  column-gap: 11px;
}

.preserve-access {
  position: absolute;
  left: -20000px;
}

*[aria-hidden="true"] {
  visibility: hidden;
}

/* Forms and Controls */

button,
input {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  /* Box Styles */
  display: block;
  border: 0;
  border-radius: 3px;
  padding: 11px;
}
#call-button {
  width: 143px; /* 6.5 typographic grid lines */
  margin-right: 11px;
}
button[aria-checked="false"] {
  text-decoration: line-through;
  color: white;
  background: red;
}
.join {
  background-color: green;
  color: white;
}
.leave {
  background-color: #CA0;
  color: black;
}

/* Video Elements */
#videos {
  align-self: start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 11px;
}
video {
  background-color: #DDD;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
#mic-status {
  padding: 11px;
}
figure {
  position: relative;
}
figcaption {
  color: #EEE;
  background: rgba(16,16,16,0.6);
  font-weight: normal;
  font-size: 14px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5.5px;
}
figcaption form {
  display: flex;
  flex-flow: row wrap;
  gap: 5.5px;
}
figcaption form > * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  flex: 1 0 auto;
}
#username-input {
  background-color: inherit;
  border: 1px solid #CCC;
  color: #EEE;
  display: block;
  padding: 5.5px;
  max-width: 100%;
}
#username-set-btn {
  background: rgba(64,64,64,0.8);
  color: #EEE;
  padding: 5.5px;
}
/* Media Queries */

@media screen and (min-width: 500px) {
  #header {
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: flex-end;
  }
  #header > * {
    flex: 0 0 auto;
  }
  #header > h1 {
    margin-bottom: 0;
  }
}
@media screen and (min-width: 680px) {
  #interface {
    grid-template-rows: auto 1fr auto;
  }
  #header {
    grid-column: 1 / 2;
  }
  #footer {
    grid-column: 1 / 2;
  }
}
